generate	grade	=	1	if	rank	==	"SS-Rekrut"
replace	grade	=	1	if	rank	==	"Unterschütze"
replace	grade	=	1	if	rank	==	"SS-Freiwilliger"
replace	grade	=	1	if	rank	==	"SS-Anwärter"
replace	grade	=	2	if	rank	==	"Artilleriematrose"
replace	grade	=	2	if	rank	==	"Baupioneer"
replace	grade	=	2	if	rank	==	"Bausoldat"
replace	grade	=	2	if	rank	==	"Flaksoldat"
replace	grade	=	2	if	rank	==	"Flakwehrmann"
replace	grade	=	2	if	rank	==	"Flieger"
replace	grade	=	2	if	rank	==	"Funker"
replace	grade	=	2	if	rank	==	"Funkergast"
replace	grade	=	2	if	rank	==	"Fusilier"
replace	grade	=	2	if	rank	==	"Grenadier"
replace	grade	=	2	if	rank	==	"Husar"
replace	grade	=	2	if	rank	==	"Jäger"
replace	grade	=	2	if	rank	==	"Kanonier"
replace	grade	=	2	if	rank	==	"Landjäger"
replace	grade	=	2	if	rank	==	"Matrose"
replace	grade	=	2	if	rank	==	"Panzergrenadier"
replace	grade	=	2	if	rank	==	"Panzerjäger"
replace	grade	=	2	if	rank	==	"Panzerpioneer"
replace	grade	=	2	if	rank	==	"Panzerschütze"
replace	grade	=	2	if	rank	==	"Pioneer"
replace	grade	=	2	if	rank	==	"Reiter"
replace	grade	=	2	if	rank	==	"Sanitäter"
replace	grade	=	2	if	rank	==	"Sanitätssoldat"
replace	grade	=	2	if	rank	==	"Schütze"
replace	grade	=	2	if	rank	==	"Soldat"
replace	grade	=	2	if	rank	==	"SS-Mann"
replace	grade	=	2	if	rank	==	"Kraftfahrer"
replace	grade	=	2	if	rank	==	"Krankenträger"
replace	grade	=	2	if	rank	==	"Krankenwärter"
replace	grade	=	2	if	rank	==	"Nachrichtenmechaniker"
replace	grade	=	2	if	rank	==	"Armierungssoldat"
replace	grade	=	2	if	rank	==	"Fahrer"
replace	grade	=	3	if	rank	==	"Bauobersoldat"
replace	grade	=	3	if	rank	==	""
replace	grade	=	3	if	rank	==	"Obersoldat"
replace	grade	=	3	if	rank	==	""
replace	grade	=	3	if	rank	==	"Sanitätsobersoldat"
replace	grade	=	3	if	rank	==	""
replace	grade	=	3	if	rank	==	"Untergefreiter"
replace	grade	=	3	if	rank	==	""
replace	grade	=	3	if	rank	==	"Oberschütze"
replace	grade	=	3	if	rank	==	""
replace	grade	=	3	if	rank	==	"Oberartilleriematrose"
replace	grade	=	3	if	rank	==	""
replace	grade	=	3	if	rank	==	"Oberfahrer"
replace	grade	=	3	if	rank	==	""
replace	grade	=	3	if	rank	==	"Oberfunker"
replace	grade	=	3	if	rank	==	""
replace	grade	=	3	if	rank	==	"Oberfunkergast"
replace	grade	=	3	if	rank	==	""
replace	grade	=	3	if	rank	==	"Oberfusilier"
replace	grade	=	3	if	rank	==	""
replace	grade	=	3	if	rank	==	"Oberlandjäger"
replace	grade	=	3	if	rank	==	""
replace	grade	=	3	if	rank	==	"Obermatrose"
replace	grade	=	3	if	rank	==	""
replace	grade	=	3	if	rank	==	"Obermatrosenartillerist"
replace	grade	=	3	if	rank	==	""
replace	grade	=	3	if	rank	==	"Panzerobergrenadier"
replace	grade	=	3	if	rank	==	""
replace	grade	=	3	if	rank	==	"Panzeroberschütze"
replace	grade	=	4	if	rank	==	"Sanitätsgefreiter"
replace	grade	=	4	if	rank	==	""
replace	grade	=	4	if	rank	==	"Sturmmann"
replace	grade	=	4	if	rank	==	""
replace	grade	=	4	if	rank	==	"Abwehrgefreiter"
replace	grade	=	4	if	rank	==	""
replace	grade	=	4	if	rank	==	"Fallschirmgefreiter"
replace	grade	=	4	if	rank	==	""
replace	grade	=	4	if	rank	==	"Funkgefreiter"
replace	grade	=	4	if	rank	==	""
replace	grade	=	4	if	rank	==	"Gefreiter"
replace	grade	=	4	if	rank	==	""
replace	grade	=	4	if	rank	==	"Heizergefreiter"
replace	grade	=	4	if	rank	==	""
replace	grade	=	4	if	rank	==	"Landsturmmann"
replace	grade	=	4	if	rank	==	""
replace	grade	=	4	if	rank	==	"Marinegefreiter"
replace	grade	=	4	if	rank	==	""
replace	grade	=	4	if	rank	==	"Matrosengefreiter"
replace	grade	=	5	if	rank	==	"Funkobergefreiter"
replace	grade	=	5	if	rank	==	""
replace	grade	=	5	if	rank	==	"Marineobergefreiter"
replace	grade	=	5	if	rank	==	""
replace	grade	=	5	if	rank	==	"Matrosenobergefreiter"
replace	grade	=	5	if	rank	==	""
replace	grade	=	5	if	rank	==	"Obergefreiter"
replace	grade	=	5	if	rank	==	""
replace	grade	=	5	if	rank	==	"Obersanitätsgefreiter"
replace	grade	=	5	if	rank	==	""
replace	grade	=	5	if	rank	==	"Rottenführer"
replace	grade	=	6	if	rank	==	"Stabsgefreiter"
replace	grade	=	6	if	rank	==	""
replace	grade	=	6	if	rank	==	"Marineartilleriestabsgefreiter"
replace	grade	=	6	if	rank	==	""
replace	grade	=	6	if	rank	==	"Sanitätsstabsgefreiter"
replace	grade	=	7	if	rank	==	"Oberstabsgefreiter"
replace	grade	=	7	if	rank	==	""
replace	grade	=	7	if	rank	==	"Hauptgefreiter"
replace	grade	=	7	if	rank	==	""
replace	grade	=	7	if	rank	==	"Matrosenhauptgefreiter"
replace	grade	=	7	if	rank	==	""
replace	grade	=	7	if	rank	==	"Sanitätsunteroffizieranwärter"
replace	grade	=	7	if	rank	==	""
replace	grade	=	7	if	rank	==	"Unteroffizierbewerber"
replace	grade	=	7	if	rank	==	""
replace	grade	=	7	if	rank	==	"Waffenunteroffizieranwärter"
replace	grade	=	7	if	rank	==	""
replace	grade	=	7	if	rank	==	"Oberjägeranwärter"
replace	grade	=	7	if	rank	==	""
replace	grade	=	7	if	rank	==	"Unteroffizierfahnenjunker"
replace	grade	=	7	if	rank	==	""
replace	grade	=	7	if	rank	==	"Unterscharführeranwärter"
replace	grade	=	8	if	rank	==	"RAD Unteroffizier"
replace	grade	=	8	if	rank	==	""
replace	grade	=	8	if	rank	==	"Reserveunteroffizier"
replace	grade	=	8	if	rank	==	""
replace	grade	=	8	if	rank	==	"Schirrunteroffizier"
replace	grade	=	8	if	rank	==	""
replace	grade	=	8	if	rank	==	"Unteroffizier"
replace	grade	=	8	if	rank	==	""
replace	grade	=	8	if	rank	==	"Waffenunteroffizier"
replace	grade	=	8	if	rank	==	""
replace	grade	=	8	if	rank	==	"Feldkoch unteroffizier"
replace	grade	=	8	if	rank	==	""
replace	grade	=	8	if	rank	==	"Feuerwerkerunteroffizier"
replace	grade	=	8	if	rank	==	""
replace	grade	=	8	if	rank	==	"Funkunteroffizier"
replace	grade	=	8	if	rank	==	""
replace	grade	=	8	if	rank	==	"Geräteunteroffizier"
replace	grade	=	8	if	rank	==	""
replace	grade	=	8	if	rank	==	"Maschinenmaat"
replace	grade	=	8	if	rank	==	""
replace	grade	=	8	if	rank	==	"Musikerunteroffizier"
replace	grade	=	8	if	rank	==	""
replace	grade	=	8	if	rank	==	"RAD Unteroffizier"
replace	grade	=	8	if	rank	==	""
replace	grade	=	8	if	rank	==	"Reserveunteroffizier"
replace	grade	=	8	if	rank	==	""
replace	grade	=	8	if	rank	==	"Oberbausoldat"
replace	grade	=	8	if	rank	==	""
replace	grade	=	8	if	rank	==	"Oberfunker"
replace	grade	=	8	if	rank	==	""
replace	grade	=	8	if	rank	==	"Oberfunkergast"
replace	grade	=	8	if	rank	==	""
replace	grade	=	8	if	rank	==	"Oberfusilier"
replace	grade	=	8	if	rank	==	""
replace	grade	=	8	if	rank	==	"Obergrenadier"
replace	grade	=	8	if	rank	==	""
replace	grade	=	8	if	rank	==	"Oberjäger"
replace	grade	=	8	if	rank	==	""
replace	grade	=	8	if	rank	==	"Oberheizer"
replace	grade	=	8	if	rank	==	""
replace	grade	=	8	if	rank	==	"Oberkanonier"
replace	grade	=	8	if	rank	==	""
replace	grade	=	8	if	rank	==	"Oberkraftfahrer"
replace	grade	=	8	if	rank	==	""
replace	grade	=	8	if	rank	==	"Obermusketier"
replace	grade	=	8	if	rank	==	""
replace	grade	=	8	if	rank	==	"Oberpioneer"
replace	grade	=	8	if	rank	==	""
replace	grade	=	8	if	rank	==	"Oberreiter"
replace	grade	=	8	if	rank	==	""
replace	grade	=	8	if	rank	==	"Unterwachtmeister-Fahnenjunker"
replace	grade	=	8	if	rank	==	""
replace	grade	=	8	if	rank	==	"Korporal"
replace	grade	=	8	if	rank	==	""
replace	grade	=	8	if	rank	==	"Unterscharführer"
replace	grade	=	9	if	rank	==	"Scharführer"
replace	grade	=	9	if	rank	==	""
replace	grade	=	9	if	rank	==	"Unterfeldwebel"
replace	grade	=	9	if	rank	==	""
replace	grade	=	9	if	rank	==	"Oberbootsmannsmaat"
replace	grade	=	9	if	rank	==	""
replace	grade	=	9	if	rank	==	"Obermaschinenmaat"
replace	grade	=	9	if	rank	==	""
replace	grade	=	9	if	rank	==	"Unterwachtmeister"
replace	grade	=	9	if	rank	==	""
replace	grade	=	9	if	rank	==	"Feldwebel-Fahnenjunker"
replace	grade	=	9	if	rank	==	""
replace	grade	=	9	if	rank	==	"Sergeant"
replace	grade	=	9	if	rank	==	""
replace	grade	=	9	if	rank	==	"Vizefeldwebel"
replace	grade	=	9	if	rank	==	""
replace	grade	=	9	if	rank	==	"Vizefeuerwerker"
replace	grade	=	9	if	rank	==	""
replace	grade	=	9	if	rank	==	"Vizewachtmeister"
replace	grade	=	9	if	rank	==	""
replace	grade	=	9	if	rank	==	"Wachtmeister-Fahnenjunker"
replace	grade	=	10	if	rank	==	"Baufeldwebel"
replace	grade	=	10	if	rank	==	""
replace	grade	=	10	if	rank	==	"Bootsmann"
replace	grade	=	10	if	rank	==	""
replace	grade	=	10	if	rank	==	"Funkmeister"
replace	grade	=	10	if	rank	==	""
replace	grade	=	10	if	rank	==	"Oberscharführer"
replace	grade	=	10	if	rank	==	""
replace	grade	=	10	if	rank	==	"Sanitätsfeldwebel"
replace	grade	=	10	if	rank	==	""
replace	grade	=	10	if	rank	==	"Oberfeldwebelanwärter"
replace	grade	=	10	if	rank	==	""
replace	grade	=	10	if	rank	==	"Feldwebel"
replace	grade	=	10	if	rank	==	""
replace	grade	=	10	if	rank	==	"Wachtmeister"
replace	grade	=	10	if	rank	==	""
replace	grade	=	10	if	rank	==	"Oberwachtmeisteranwärter"
replace	grade	=	10	if	rank	==	""
replace	grade	=	10	if	rank	==	"Polizeiwachtmeister"
replace	grade	=	11	if	rank	==	"Hauptscharführer"
replace	grade	=	11	if	rank	==	""
replace	grade	=	11	if	rank	==	"Oberbeschlagmeister"
replace	grade	=	11	if	rank	==	""
replace	grade	=	11	if	rank	==	"Oberfeldwebel"
replace	grade	=	11	if	rank	==	""
replace	grade	=	11	if	rank	==	"Oberfeuerwerker"
replace	grade	=	11	if	rank	==	""
replace	grade	=	11	if	rank	==	"Oberfunkmeister"
replace	grade	=	11	if	rank	==	""
replace	grade	=	11	if	rank	==	"Sanitätsoberfeldwebel"
replace	grade	=	11	if	rank	==	""
replace	grade	=	11	if	rank	==	"Oberfeldwachtmeister"
replace	grade	=	11	if	rank	==	""
replace	grade	=	11	if	rank	==	"Oberwachtmeister"
replace	grade	=	11	if	rank	==	""
replace	grade	=	11	if	rank	==	"Polizeioberwachtmeister"
replace	grade	=	11	if	rank	==	""
replace	grade	=	11	if	rank	==	"R.Oberwachtmeister"
replace	grade	=	11	if	rank	==	""
replace	grade	=	11	if	rank	==	"Revieroberwachtmeister"
replace	grade	=	11	if	rank	==	""
replace	grade	=	11	if	rank	==	"Rottwachtmeister"
replace	grade	=	11	if	rank	==	""
replace	grade	=	11	if	rank	==	"Hauptfeldwebelanwärter"
replace	grade	=	11	if	rank	==	""
replace	grade	=	11	if	rank	==	"Schirrmeister"
replace	grade	=	12	if	rank	==	"Marineartilleriestabsfedlwebel"
replace	grade	=	12	if	rank	==	""
replace	grade	=	12	if	rank	==	"Oberhauptwachtmeister"
replace	grade	=	12	if	rank	==	""
replace	grade	=	12	if	rank	==	"Obersteuermann"
replace	grade	=	12	if	rank	==	""
replace	grade	=	12	if	rank	==	"Sanitätsstabsfeldwebel"
replace	grade	=	12	if	rank	==	""
replace	grade	=	12	if	rank	==	"Stabsfeldwebel"
replace	grade	=	12	if	rank	==	""
replace	grade	=	12	if	rank	==	"Stabsfunkmeister"
replace	grade	=	12	if	rank	==	""
replace	grade	=	12	if	rank	==	"Sanitätshauptfeldwebel"
replace	grade	=	12	if	rank	==	""
replace	grade	=	12	if	rank	==	"Hauptfeldwebel"
replace	grade	=	12	if	rank	==	""
replace	grade	=	12	if	rank	==	"Hauptwachtmeister"
replace	grade	=	12	if	rank	==	""
replace	grade	=	12	if	rank	==	"Stabsscharführer"
replace	grade	=	12	if	rank	==	""
replace	grade	=	12	if	rank	==	"Stabsschirrmeister"
replace	grade	=	12	if	rank	==	""
replace	grade	=	12	if	rank	==	"Oberschirrmeister"
replace	grade	=	12	if	rank	==	""
replace	grade	=	12	if	rank	==	"Stabsoberwachtmeister"
replace	grade	=	12	if	rank	==	""
replace	grade	=	12	if	rank	==	"Stabswachtmeister"
replace	grade	=	13	if	rank	==	"Fahnenjunker"
replace	grade	=	13	if	rank	==	""
replace	grade	=	13	if	rank	==	"Reservesanitätsoffizierbewerber"
replace	grade	=	13	if	rank	==	""
replace	grade	=	13	if	rank	==	"SS-Führerbewerber"
replace	grade	=	14	if	rank	==	"Fähnrich"
replace	grade	=	14	if	rank	==	""
replace	grade	=	14	if	rank	==	"Reservesanitätsoffizieranwärter"
replace	grade	=	14	if	rank	==	""
replace	grade	=	14	if	rank	==	"Sanitätsoffizieranwärter"
replace	grade	=	14	if	rank	==	""
replace	grade	=	14	if	rank	==	"Sanitätsunteroffizierfahnenjunker"
replace	grade	=	14	if	rank	==	""
replace	grade	=	14	if	rank	==	"Standartenjunker"
replace	grade	=	14	if	rank	==	""
replace	grade	=	14	if	rank	==	"Unteroffizier-Fahnenjunker"
replace	grade	=	14	if	rank	==	""
replace	grade	=	14	if	rank	==	"Unterwachtmeister-Fahnenjunker"
replace	grade	=	15	if	rank	==	"Oberfähnrich"
replace	grade	=	15	if	rank	==	""
replace	grade	=	15	if	rank	==	"Standartenoberjunker"
replace	grade	=	15	if	rank	==	""
replace	grade	=	15	if	rank	==	"Wachtmeister-Fahnenjunker"
replace	grade	=	15	if	rank	==	""
replace	grade	=	15	if	rank	==	"Unterarzt"
replace	grade	=	16	if	rank	==	"Leutnant"
replace	grade	=	16	if	rank	==	""
replace	grade	=	16	if	rank	==	"Untersturmmführer"
replace	grade	=	16	if	rank	==	""
replace	grade	=	16	if	rank	==	"Oberarzt"
replace	grade	=	17	if	rank	==	"Oberleutnant"
replace	grade	=	17	if	rank	==	""
replace	grade	=	17	if	rank	==	"Oberveterinär"
replace	grade	=	17	if	rank	==	""
replace	grade	=	17	if	rank	==	"Obersturmführer"
replace	grade	=	18	if	rank	==	"Hauptmann"
replace	grade	=	18	if	rank	==	""
replace	grade	=	18	if	rank	==	"Hauptsturmführer"
replace	grade	=	18	if	rank	==	""
replace	grade	=	18	if	rank	==	"Rittmeister"
replace	grade	=	18	if	rank	==	""
replace	grade	=	18	if	rank	==	"Stabsarzt"
replace	grade	=	18	if	rank	==	""
replace	grade	=	18	if	rank	==	"Stabsveterinär"
replace	grade	=	18	if	rank	==	"Hauptmann"
replace	grade	=	18	if	rank	==	""
replace	grade	=	18	if	rank	==	"Hauptsturmführer"
replace	grade	=	18	if	rank	==	""
replace	grade	=	18	if	rank	==	"Rittmeister"
replace	grade	=	18	if	rank	==	""
replace	grade	=	18	if	rank	==	"Stabsarzt"
replace	grade	=	18	if	rank	==	""
replace	grade	=	18	if	rank	==	"Stabsveterinär"
replace	grade	=	19	if	rank	==	"Major"
replace	grade	=	19	if	rank	==	""
replace	grade	=	19	if	rank	==	"Oberstabsarzt"
replace	grade	=	19	if	rank	==	""
replace	grade	=	19	if	rank	==	"Sturmbahnführer"
replace	grade	=	20	if	rank	==	"Oberfeldarzt"
replace	grade	=	20	if	rank	==	"Oberstleutnant"
replace	grade	=	20	if	rank	==	"Obersturmbahnführer"
replace grade=. if rank==""
